<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/9/26
 * Time: 17:20
 */

namespace common\models\db;

use yii\helpers\ArrayHelper;


/**
 * Class QueneJob
 * @package common\models\db
 */
class QueneJob extends \common\models\db\tables\QueneJob
{
    const STATUS_READY = 0;
    const STATUS_DOING = 1;
    const STATUS_DONE = 11;
    const STATUS_ERROR = -1;

    public function rules()
    {
        $a1 = parent::rules();
        $rules = [
            [['script', 'stdout_content'], 'string', 'max' => 65535],
        ];
        $rules = ArrayHelper::merge($a1, $rules);
        return $rules;
    }
}